﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdArchiveVMs
{
    public partial class ProdArchiveTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProdArchive._Sn")]
        public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.Sn);
        [Display(Name = "_Model._ProdArchive._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.ProductId);
        [Display(Name = "_Model._ProdArchive._ProductCode")]
        public ExcelPropety ProductCode_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.ProductCode);
        [Display(Name = "_Model._ProdArchive._Wo")]
        public ExcelPropety Wo_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.Wo);
        [Display(Name = "_Model._ProdArchive._LineId")]
        public ExcelPropety LineId_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.LineId);
        [Display(Name = "_Model._ProdArchive._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.LineCode);
        [Display(Name = "_Model._ProdArchive._OpId")]
        public ExcelPropety OpId_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.OpId);
        [Display(Name = "_Model._ProdArchive._OpCode")]
        public ExcelPropety OpCode_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.OpCode);
        [Display(Name = "_Model._ProdArchive._RoutingId")]
        public ExcelPropety RoutingId_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.RoutingId);
        [Display(Name = "_Model._ProdArchive._RoutingCode")]
        public ExcelPropety RoutingCode_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.RoutingCode);
        [Display(Name = "_Model._ProdArchive._InboundTime")]
        public ExcelPropety InboundTime_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.InboundTime, true);
        [Display(Name = "_Model._ProdArchive._OutboundTime")]
        public ExcelPropety OutboundTime_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.OutboundTime, true);
        [Display(Name = "_Model._ProdArchive._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.Status);
        [Display(Name = "_Model._ProdArchive._Shift")]
        public ExcelPropety Shift_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.Shift);
        [Display(Name = "_Model._ProdArchive._CycleTime")]
        public ExcelPropety CycleTime_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.CycleTime);
        [Display(Name = "_Model._ProdArchive._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.CreateTime, true);
        [Display(Name = "_Model._ProdArchive._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ProdArchive._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.CreateBy);
        [Display(Name = "_Model._ProdArchive._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.UpdateBy);
        [Display(Name = "_Model._ProdArchive._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.IsValid);
        [Display(Name = "_Model._ProdArchive._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ProductionArchive>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProdArchiveImportVM : BaseImportVM<ProdArchiveTemplateVM, ProductionArchive>
    {
            //import

    }

}